<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class BackendGroupModel extends Model
{
    public $timestamps = false;
    protected $table = 'backend_group';

    /** 验证名称唯一性 */
    static public function checkNameValid($group_name)
    {
        return self::where('group_name', $group_name)->first() ? true : false;
    }
}
